{% extends 'AcmeDemoBundle::layout.html.twig' %}

{% block content %}
    <table border="1">
        <tr>
            <th>id</th>
            <th>name</th>
            <th>buy_max</th>
            <th>sell_min</th>
            <th>all_volume</th>
            <th>net_margin</th>
            <th>net_margin_percentage</th>
        </tr>
        {% for invtype in invtypes %}
            <tr>
                <td>
                    {{ invtype.id }}
                </td>
                <td>
                    {{ invtype.typename }}
                </td>
                <td>
                    {{ invtype.buy_max }}
                </td>
                <td>
                    {{ invtype.sell_min }}
                </td>
                <td>
                    {{ invtype.all_volume }}
                </td>
                <td>
                    {{ invtype.net_margin }}
                </td>
                <td>
                    {{ invtype.net_margin_percentage }}
                </td>
            </tr>
        {% endfor %}
    </table>
    <ul>
        {% for i in (page - 2)..(page +2) %}
            {% if i > 0 and i <= pages %}
                <li>
                    <a href="{{ path('ladenise_eve_station_trading_homepage', {'page': i}) }}">{{ i }}</a>
                </li>
            {% endif %}
        {% endfor %}
    </ul>
{% endblock %}
